Blender Documentation Volume II - Reference Guide: Last modified March 29 2004 S68 | ||
---|---|---|
<<< Previous | Python API Reference | Next >>> |
This object gives access to mesh data in Blender. We refer to mesh as the object in Blender and NMesh as its Python counterpart.
Method Summary | ||
á | addMaterial(material) Add a new material to this NMesh's list of materials. | |
int | getActiveFace() Get the index of the active face. | |
list | getSelectedFaces(flag) Get list of selected faces. | |
list | getVertexInfluences(index) Get influences of bones in a specific vertex. | |
bool | hasFaceUV(flag) Get (and optionally set) if this NMesh has UV-mapped textured faces. | |
bool | hasVertexColours(flag) Get (and optionally set) if this NMesh has vertex colours. | |
bool | hasVertexUV(flag) Get (and optionally set) the "sticky" flag that controls if a mesh has per vertex UV coordinates. | |
á | insertKey(frame, type) Insert a mesh key at the given frame. | |
bool | removeAllKeys() Remove all mesh keys stored in this mesh. | |
á | update(recalc_normals) Update the mesh in Blender. |
Class Variable Summary | ||
á | faces - The list of NMesh faces (NMFaces). | |
á | materials - The list of materials used by this NMesh. | |
á | name - The NMesh name. | |
á | users - The number of Objects using (linked to) this mesh. | |
á | verts - The list of NMesh vertices (NMVerts). |
addMaterial(material) Add a new material to this NMesh's list of materials. This method is the slower but safer way to add materials, since it checks if the argument given is really a material, imposes a limit of 16 materials and only adds the material if it wasn't already in the list.
|
getActiveFace() Get the index of the active face.
|
getSelectedFaces(flag=None) Get list of selected faces.
|
getVertexInfluences(index) Get influences of bones in a specific vertex.
|
hasFaceUV(flag=None) Get (and optionally set) if this NMesh has UV-mapped textured faces.
|
hasVertexColours(flag=None) Get (and optionally set) if this NMesh has vertex colours.
|
hasVertexUV(flag=None) Get (and optionally set) the "sticky" flag that controls if a mesh has per vertex UV coordinates.
|
insertKey(frame=None, type='relative') Insert a mesh key at the given frame. Remember to update the nmesh before doing this, or changes in the vertices won't be updated in the Blender mesh.
|
removeAllKeys() Remove all mesh keys stored in this mesh.
|
update(recalc_normals=0) Update the mesh in Blender. The changes made are put back to the mesh in Blender, if available, or put in a newly created mesh object if this NMesh wasn't linked to one, yet.
|
<<< Previous | Home | Next >>> |
Class NMesh | Up | Class NMFace |